//
//  SheZhiView.m
//  XingRun
//
//  Created by 赵颜彬 on 17/1/13.
//  Copyright © 2017年 赵颜彬. All rights reserved.
//

#import "SheZhiView.h"

@implementation SheZhiView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.btn = [UIButton buttonWithType:UIButtonTypeCustom];
        [self.btn setTitle:@"退出登录" forState:UIControlStateNormal];
        _btn.titleLabel.font = [UIFont systemFontOfSize:12.0];
        [self addSubview:_btn];
        [_btn setTitleColor:[UIColor blackColor]forState:UIControlStateNormal];
        [_btn.layer setBorderWidth:0.5]; //边框宽度
        _btn.layer.borderColor=[UIColor blackColor].CGColor;

      
        
           }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];
    _btn.frame = CGRectMake(40 * WIDTH, 20 * HEIGHT, 295 * WIDTH, 40 * HEIGHT);

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
